package com.chen.Sign.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.chen.Sign.pojo.Blog_tag;
import com.chen.Sign.mapper.Blog_tagMapper;
import com.chen.Sign.pojo.Tag;
import com.chen.Sign.service.Blog_tagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
@SuppressWarnings({"all"})
public class Blog_tagServiceImpl extends ServiceImpl<Blog_tagMapper, Blog_tag> implements Blog_tagService {

    @Autowired
    Blog_tagMapper blog_tagMapper;


    public Map<String, Object> selecttag(Integer id) {
        Map<String, Object> map = blog_tagMapper.selectById(id);
        return map;
    }

    public boolean addtag(String tag) {
        boolean addtag = blog_tagMapper.addtag(tag);
        return addtag;
    }
}
